package org.example;

import java.util.ArrayList;

public class Main {
    public static void main(String[] args) {
        System.out.println("Hello world!");

        Order order = new Order("Mr X", "Chicago, 60601", new ArrayList<LineItem>());
        OrderReceipt receipt = new OrderReceipt(order);

        String output = receipt.printReceipt();
        System.out.println(output);

        ArrayList<LineItem> lineItems = new ArrayList<LineItem>();
        lineItems.add(new LineItem("milk", 10.0, 2));
        lineItems.add(new LineItem("biscuits", 5.0, 5));
        lineItems.add(new LineItem("chocolate", 20.0, 1));

        OrderReceipt receipt2 = new OrderReceipt(new Order(null, null, lineItems));

        String output2 = receipt2.printReceipt();
        System.out.println(output2);
    }
}